Silicon Labs /BGM220SC22WGA /LETIMER0_S /CTRL

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as CTRL

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (FREE)REPMODE 0 (NONE)UFOA0 0 (NONE)UFOA1 0 (OPOL0)OPOL0 0 (OPOL1)OPOL1 0 (DISABLE)BUFTOP 0 (DISABLE)CNTTOPEN 0 (DISABLE)DEBUGRUN 0 (DIV1)CNTPRESC

BUFTOP=DISABLE, UFOA0=NONE, DEBUGRUN=DISABLE, CNTTOPEN=DISABLE, UFOA1=NONE, REPMODE=FREE, CNTPRESC=DIV1

Description

No Description

Fields

REPMODE

Repeat Mode

0 (FREE): When started, the LETIMER counts down until it is stopped by software

1 (ONESHOT): The counter counts REP0 times. When REP0 reaches zero, the counter stops

2 (BUFFERED): The counter counts REP0 times. If REP1 has been written, it is loaded into REP0 when REP0 reaches zero, otherwise the counter stops

3 (DOUBLE): Both REP0 and REP1 are decremented when the LETIMER wraps around. The LETIMER counts until both REP0 and REP1 are zero

UFOA0

Underflow Output Action 0

0 (NONE): LETIMERn_OUT0 is held at its idle value as defined by OPOL0

1 (TOGGLE): LETIMERn_OUT0 is toggled on CNT underflow

2 (PULSE): LETIMERn_OUT0 is held active for one LETIMER0 clock cycle on CNT underflow. The output then returns to its idle value as defined by OPOL0

3 (PWM): LETIMERn_OUT0 is set idle on CNT underflow, and active on compare match with COMP1

UFOA1

Underflow Output Action 1

0 (NONE): LETIMERn_OUT1 is held at its idle value as defined by OPOL1

1 (TOGGLE): LETIMERn_OUT1 is toggled on CNT underflow

2 (PULSE): LETIMERn_OUT1 is held active for one LETIMER0 clock cycle on CNT underflow. The output then returns to its idle value as defined by OPOL1

3 (PWM): LETIMERn_OUT1 is set idle on CNT underflow, and active on compare match with COMP1

OPOL0

Output 0 Polarity

OPOL1

Output 1 Polarity

BUFTOP

Buffered Top

0 (DISABLE): TOP is only written by software

1 (ENABLE): TOP is set to TOPBUFF value when REP0 reaches 0

CNTTOPEN

Compare Value 0 Is Top Value

0 (DISABLE): The top value of the LETIMER is 16777215 (0xFFFFFF)

1 (ENABLE): The top value of the LETIMER is given by TOP

DEBUGRUN

Debug Mode Run Enable

0 (DISABLE): LETIMER is frozen in debug mode

1 (ENABLE): LETIMER is running in debug mode

CNTPRESC

Counter prescaler value

0 (DIV1): CLK_CNT = (LETIMER LF CLK)/1

1 (DIV2): CLK_CNT = (LETIMER LF CLK)/2

2 (DIV4): CLK_CNT = (LETIMER LF CLK)/4

3 (DIV8): CLK_CNT = (LETIMER LF CLK)/8

4 (DIV16): CLK_CNT = (LETIMER LF CLK)/16

5 (DIV32): CLK_CNT = (LETIMER LF CLK)/32

6 (DIV64): CLK_CNT = (LETIMER LF CLK)/64

7 (DIV128): CLK_CNT = (LETIMER LF CLK)/128

8 (DIV256): CLK_CNT = (LETIMER LF CLK)/256

Links

()